package com.zcxy.util;

import org.apache.poi.ss.formula.functions.Countif;

import java.util.Scanner;

public class test2 {

    public static void main(String[] args) {

     /*   //10^3
        double v = Math.pow(10, 3);
        System.out.println("次方计算10^3***********************************:"+v);
        //log1000
        double e= Math.log10(1000);
        System.out.println("次方计算log1000*************************:"+e);
        //log(2)8
        double e2= Math.log(8)/Math.log(2);

        System.out.println("次方计算log(2)8******************************:"+e2);*/

        Scanner sc = new Scanner(System.in);
        sc.useDelimiter("/n");
        System.out.println("欢迎来到数学公式模拟平台，我是小智^_^");
        System.out.println("请输入公式所需的参数A!!");
        Double A = null;
        try {
            A = Double.parseDouble(sc.nextLine());
        } catch (NumberFormatException e) {
            System.out.println("请输入数值类型!!");
        }
        System.out.println("请输入公式所需的参数B!!");

        Double B = null;
        try {
            B = Double.parseDouble(sc.nextLine());
        } catch (NumberFormatException e) {
            System.out.println("请输入数值类型!!");
        }

        System.out.println("请输入公式所需的参数C!!");
        Double C = null;
        try {
            C = Double.parseDouble(sc.nextLine());
        } catch (NumberFormatException e) {
            System.out.println("请输入数值类型!!");
        }
       double a=2.027844383;

        double b=Math.pow(10,a);



       double d= Math.pow(10,C*(Math.log10(A))+(1-C)*Math.log10(B));


        System.out.println(d);

/*

        System.out.println("请输入公式所需的参数T!!");


        Double T = null;
        try {
            T = Double.parseDouble(sc.nextLine());
        } catch (NumberFormatException e) {
            System.out.println("请输入数值类型!!");
        }

        System.out.println("恭喜您已完成所有参数的输入!!");
        System.out.println("A:"+A);
        System.out.println("B:"+B);
        System.out.println("C:"+C);
        System.out.println("T"+T);
        System.out.println("计算中!!!");

        double a=Math.pow(10,(A+B/T));
        System.out.println("公式：logη=A+B/T ");
        System.out.println("η的计算结果为："+a);
        double b=A*Math.pow(T,B);
        System.out.println("公式：η=A*T^b ");
        System.out.println("η的计算结果为："+b);
        double c=Math.pow(10,(A+(B/(C-T))));
        System.out.println("公式：logη=A+B/(C-T) ");
        System.out.println("η的计算结果为："+c);*/








    }


}
